import request from '@/utils/request'

// 查询会员申请记录列表
export function listAxMemberApplyRecord(query) {
  return request({
    url: '/ax/AxMemberApplyRecord/list',
    method: 'get',
    params: query
  })
}

// 查询会员申请记录详细
export function getAxMemberApplyRecord(id) {
  return request({
    url: '/ax/AxMemberApplyRecord/' + id,
    method: 'get'
  })
}

// 新增会员申请记录
export function addAxMemberApplyRecord(data) {
  return request({
    url: '/ax/AxMemberApplyRecord',
    method: 'post',
    data: data
  })
}

// 审核
export function auditMemberApply(data) {
  return request({
    url: '/ax/AxMemberApplyRecord/audit',
    method: 'post',
    data: data
  })
}


// 修改会员申请记录
export function updateAxMemberApplyRecord(data) {
  return request({
    url: '/ax/AxMemberApplyRecord',
    method: 'put',
    data: data
  })
}

// 删除会员申请记录
export function delAxMemberApplyRecord(id) {
  return request({
    url: '/ax/AxMemberApplyRecord/' + id,
    method: 'delete'
  })
}
